package com.example.application.dao.Impl;

import com.example.application.bean.ClassBean;
import com.example.application.bean.StudentBean;
import com.example.application.dao.IStudentDao;

import java.util.ArrayList;
import java.util.List;

public class StudentDaoImpl implements IStudentDao {
    @Override
    public List<StudentBean> showAllStudents() {

        List<StudentBean> list = new ArrayList<>();
        ClassBean c1 = new ClassBean(1,"班级1");
        ClassBean c2 = new ClassBean(2,"班级2");
        ClassBean c3 = new ClassBean(3,"班级3");

        list.add(new StudentBean(1,"李菊花1","男",c1));
        list.add(new StudentBean(2,"李菊花2","男",c1));
        list.add(new StudentBean(3,"李菊花3","女",c2));
        list.add(new StudentBean(4,"李菊花4","男",c3));
        list.add(new StudentBean(5,"李菊花5","女",c2));
        list.add(new StudentBean(6,"李菊花6","女",c1));
        list.add(new StudentBean(7,"李菊花7","男",c3));

        return list;
    }
}
